package com.qiaofang.applet.service.member.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * @Author: youqing.yang
 * @Create: 2021/03/29 11:21
 * @Description:
 **/
@Data
@ApiModel("经纪人日报数据DTO")
public class EmployeeDailyDto {

    @ApiModelProperty("公司uuid")
    private String companyUuid;

    @ApiModelProperty("部门UUID")
    private String deptUuid;

    @ApiModelProperty("经纪人uuid")
    private String employeeUniqueUuid;

    @ApiModelProperty("姓名")
    private String employeeName;

    @ApiModelProperty("房源/名片分享次数")
    private Long shares;

    @ApiModelProperty("客户人数")
    private Long clients;

    @ApiModelProperty("浏览次数")
    private Long browses;

    @ApiModelProperty("微聊次数")
    private Long chats;

    @ApiModelProperty("预约人数")
    private Long reservations;

    public String getEmployeeUniqueUuid() {
        if (StringUtils.isNotBlank(employeeUniqueUuid)) {
            return employeeUniqueUuid.replace(companyUuid + "_", "");
        }
        return "";
    }





}
